-- GENERATED SPELL FOR [Gidge Spellweaver] --


function spell0_22213(pUnit, Event) --@Unlearn Spellfire Tailoring,n/a--
pUnit:FullCastSpellOnTarget(41299,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22213', 587, 1)
end

function Sorts_22213(pUnit, Event)
local choix_sorts_22213 = math.random(0, 0)
if choix_sorts_22213 == 0 then
pUnit:RegisterEvent('spell0_22213', 1, 1)
end
end

function mob22213_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22213', math.random(1500, 3000), 1)
end

function mob22213_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22213_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22213_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22213, 1, 'mob22213_Action')
RegisterUnitEvent(22213, 2, 'mob22213_Leave')
RegisterUnitEvent(22213, 3, 'mob22213_Kill')
RegisterUnitEvent(22213, 4, 'mob22213_Die')
